var express = require('express');

var app = express();
var port = 80;//端口号
var control = require("./route/control.js");
app.listen(port,function(){
    console.log("端口号为：" + port);
});

var bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

app.use(express.static('public'));
//目击地点击
app.post('/posttalk1',control.posttalk);
//目的地详情
app.post('/posttalk2',control.posttalk2);




